package u8.ejercicio1;

public class Cadena {
	private String s;
	
	public Cadena(String s){
		this.s=s;
	}
	
	public String getCadena(){
		return this.s;
	}
	
	public void cDelante(String cadena){
		this.s=cadena+this.s;
	}
	
	public void cDetras(String s){
		
	}
	
	public void quitar(char caracterAQuitar){
		String cadenaADevolver="";
		for (int i=0; i<s.length();i++){
			if(s.charAt(i)!=caracterAQuitar){
				cadenaADevolver=cadenaADevolver+s.charAt(i);
			}
		}
	}
	
	public void quitar(char c, int n){
		
	}
}
